package com.wanmait.employment.webController;


import com.wanmait.employment.entity.CompanyType;
import com.wanmait.employment.service.CompanyService;
import com.wanmait.employment.service.CompanyTypeService;
import com.wanmait.employment.util.AjaxResult;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

@RestController
@RequestMapping("web/companyType")
public class WebCompanyTypeController {

    @Resource
    private CompanyTypeService companyTypeService;

    @GetMapping("getCompanyTypes")
    public AjaxResult getCompanyTypes(){
        List<CompanyType> companyTypeList=companyTypeService.findAll();
        return AjaxResult.success("success").put("companyTypeList",companyTypeList);
    }


}
